package com.wf.controller;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.wf.common.Result;

import com.wf.service.IRegionService;
import com.wf.entity.Region;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 地区表 前端控制器
 * </p>
 *
 * @author wfs
 * @since 2022-06-26
 */
@RestController
@RequestMapping("/region")
public class RegionController {

    @Resource
    private IRegionService regionService;


    @GetMapping
    public Result findAll() {
        return Result.success(regionService.list());
    }

}

